listitem: Change focus handling
authorBenjamin Otte <otte@redhat.com>
Tue, 15 Oct 2019 02:18:10 +0000 (04:18 +0200)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 30 May 2020 23:26:45 +0000 (19:26 -0400)
commit08d9a57c6e1022143c747799dd10043a7275a196
treeca7712566cf208ffc3a406176eb041befe1b8cb2
parentd7b5966fa7343d47b40b9b16989a07bc7b24315a
listitem: Change focus handling

Focus in the listitem now works like this:
1. If any child can take focus, do not ever attempt
   to take focus.
2. Otherwise, if this item is selectable or activatable,
   allow focusing this widget.

This makes sure every item in a list is focusable for
activation and selection handling, but no useless widgets
get focused and moving focus is as fast as possible.
gtk/gtklistitem.c